package com.wanmait.recruitment.service;

import com.github.pagehelper.PageInfo;
import com.wanmait.recruitment.pojo.Deliver;
import com.wanmait.recruitment.pojo.Job;

import java.util.List;

public interface DeliverService extends CommonService<Deliver> {
    //查询用户是否已投递查看职位
    Deliver selectByUserinfoId(Integer userinfoId, Integer jobId);

    List<Job> findBycompany(Integer companyId);

    List<Deliver> findBycompanyId(Integer id);

    Deliver selectById(Integer id);

    PageInfo<Deliver> findPage(int pageNum, int pageSize,Integer companyId, Integer exRequireId,Integer degreeId,Integer state);
    //设置用户简历不合适
    int inappropriate(Integer id);
    //查看不合适的简历
    PageInfo<Deliver>inappropriateList(Integer id,int pageNum, int pageSize);
    //公司删除简历
    int removed(Integer id);
    //查询每个职位收到的简历数量
    int findByJobResume(Integer id);
    //设置待定简历
    int canInterview(Integer id);
    //设置已通过面试简历
    int adopt(Integer id);
    //查看待定简历
    PageInfo<Deliver>canInterviewResumes(int pageNum, int pageSize,Integer companyId, Integer exRequireId,Integer degreeId,Integer state);
    //查看已经通过的简历
    PageInfo<Deliver>haveNoticeResumes(Integer id,int pageNum, int pageSize);
    //查看待处理简历
    PageInfo<Deliver>pending(int pageNum, int pageSize,Integer companyId, Integer exRequireId,Integer degreeId,Integer state);
    //查询用户投递的简历
    PageInfo<Deliver>findByUserId(int pageNum, int pageSize,Integer id,Integer state);
    //设置已查看简历
    int Viewed(Integer id);
    //设置简历时间状态对应Id
    int updateResumeState(Integer deliverId,Integer resumeStateId);
}
